<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="${pageContext.request.contextPath }/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/h-ui/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/h-ui/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/h-ui/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/h-ui/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
<title>添加用户</title>
</head>
<body>
<div class="pd-20">
  <form action="" method="post" class="form form-horizontal" id="add_HomeMessage_Form">
  	<input type="hidden" id="sfId" name="sfId" value="">
  	<div class="row cl">
       <label class="form-label col-3"><span class="c-red">*</span>父级：</label>
       <div class="formControls col-5">
       	<span class="select-box" style="width:150px;">
            <select id="ffId" name="ffId" class="select" datatype="*" nullmsg="请选择上级" onchange="choicePatternPrint(this)">
       			<option value="">请选择</option>
           		<c:forEach items="${fabricFilterList }" var="fabricFilter">
           			<option value="${fabricFilter.ffId }">${fabricFilter.ffName }</option>
           		</c:forEach>
			</select>
		</span>
        </div>
        <div class="col-4"> </div>
    </div>
    <div class="row cl">
       <label class="form-label col-3"><span class="c-red">*</span>子级：</label>
       <div class="formControls col-5">
       	<span class="select-box" style="width:150px;">
            <select id="ppId" name="ppId" class="select" datatype="*" nullmsg="请选择上级">
       			<option value="">请选择</option>
           		<%-- <c:forEach items="${patternPrintList }" var="patternPrint">
           			<option value="${patternPrint.ppId }">${patternPrint.ppName }</option>
           		</c:forEach> --%>
			</select>
		</span>
        </div>
        <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <div class="col-9 col-offset-2">
        <a class="btn btn-primary radius"  onclick="operationdata('../patternPrints/addPatternPrints','.form-horizontal')">&nbsp;&nbsp;提交&nbsp;&nbsp;</a>
      </div>
    </div>
  </form>
</div>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/js/H-ui.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/js/H-ui.admin.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/webuploader/0.1.5/webuploader.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/uploadSingleImg.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/jqthumb/jqthumb.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/tableBtnGroup.js"></script>
<script type="text/javascript">
function choicePatternPrint(obj){
	$.ajax({
		async:false,
		url:'../patternPrints/selectUnchoicePatternPrints',
		data:{'id':obj.value},
		type:'post',
		success:function(result){
			var status=result.msg.status;
			if(status==0){
				$('#ppId').empty();
				var unchoicePatternPrintsList=result.data.unchoicePatternPrintsList;
				var ppIdHtml='<option value="">请选择</option>';
				for(var i=0,listSize=unchoicePatternPrintsList.length;i<listSize;i++){
					ppIdHtml+='<option value="'+unchoicePatternPrintsList[i].ppId+'">'+unchoicePatternPrintsList[i].ppName+'</option>';
				}
				$('#ppId').append(ppIdHtml);
			}
		}
	});
}
</script>

</body>
</html>